package com.byxy.ssm.demo.dao;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.byxy.ssm.demo.entity.Forum;

public interface ForumDao {
	@Results({ 
		@Result(column = "forum_id", property = "forumId", id = true),
		@Result(column = "forum_name", property = "forumName"),
		@Result(column = "forum_status", property = "forumStatus") 
	})
	@Select("select * from forum where forum_id = #{id}")
	Forum getById(Integer id);
}
